package com.hr.emp.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * (SysUser)表实体类
 *
 * @author makejava
 * @since 2024-05-07 09:03:55
 */
@Data
public class EmpAdd {

    //员工姓名
    @NotNull(message = "员工姓名不能为空")
    private String empName;
    //编号
    @NotNull(message = "编号不能为空")
    private String workCode;
    //部门id
    @NotNull(message = "部门不能为空")
    private String deptName;
    //手机号
    @NotNull(message = "手机号不能为空")
    private String phone;
    //入职时间
    @NotNull(message = "入职时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date entryTime;
    //性别
    @NotNull(message = "性别不能为空")
    private String gender;
}

